package exam3;

public class Cmd {
    private String operation;
    private int pageNum;
    private int unitNum;

    public Cmd(String operation, int pageNum, int unitNum) {
        this.operation = operation;
        this.pageNum = pageNum;
        this.unitNum = unitNum;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getUnitNum() {
        return unitNum;
    }

    public void setUnitNum(int unitNum) {
        this.unitNum = unitNum;
    }

    @Override
    public String toString() {
        return "Cmd{" +
                "operation='" + operation + '\'' +
                ", pageNum=" + pageNum +
                ", unitNum=" + unitNum +
                '}';
    }
}
